package cn.lang.order.controller;

import cn.lang.user.service.UserService;
import cn.lang.user.vo.UserVo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {

    @DubboReference
    private UserService userService;

    @GetMapping("/getUser")
    public UserVo getUser() {
        return userService.getUser();
    }
}
